package global;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.servlet.ModelAndView;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/3/11 14:51
 * Version:1.0-SNAPSHOT
 */
@ControllerAdvice
public class GlobalException {

    @ExceptionHandler
    public ModelAndView exceptionHandler(Exception e){
        return new ModelAndView("globalException","e",e);
    }

}
